import {UploadConstants} from "@/components/plugs/upload/UploadConstants.ts";

export enum ChoiceWay{
    FILE,
    DIR ,
    FILE_DIR
}

export interface UploadView{
    url?: string;
    mergeUrl?:string;
    suffix?: string ;//逗号隔开
    splitSize?: number;
    fileSize?:number;
    choiceWay?: ChoiceWay;
    uploadFileNum?:number;
    beforeClose?: () => void;
    uploadSuccess: (state:UploadConstants,data:[]) => void;
    error?:(state:UploadConstants,data:any) => void;
}